import request from "./request";
//外卖柜


//查看所有外卖柜
export function getAllCabinetApi( ) {
    return request({
        url: '/cabinet/all',
        method: 'get'
    })
}


// POST
// 添加外卖柜
export function addCabinetApi(data: any) {
    return request({
        url: '/cabinet/add',
        method: 'POST',
        data
    })
}


// 修改快递柜状态 外卖柜位置、状态
export function updateCabinetApi(data: any) {
    return request({
        url: '/cabinet/update',
        method: 'PUT',
        data
    })
}